﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Flipmind.Xero
{
    /// <summary>
    /// Used to specify the contact records that should be returned
    /// </summary>
    public class ContactSearchCriteria
    {
        /// <summary>
        /// Contacts returned should have been updated after this time
        /// </summary>
        private DateTime updatedAfter = DateTime.MinValue;

        public SearchContactType ContactType { get; set; }
        public SearchContactSortBy SortBy { get; set; }
        public SearchContactSortByDirection SortDirection { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public DateTime UpdatedAfter {
            get
            {
                return updatedAfter;
            }
            set
            {
                this.updatedAfter = value;
            }
        } 
    }
}
